package com.serookie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.serookie.entity.Goods;

import java.util.List;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/5/13 0:12
 */
public interface GoodsService{
    //添加商品
    public Boolean addGoods(Goods goods);
    //查询所有的商品
    public List<Goods> all();
    //根据id查询商品
    public Goods GoodsById(Integer goodsId);
    //根据商品name模糊查询商品
    public List<Goods> GoodsByName(String goodsName);
    //根据商品id删除商品
    public Boolean deleteGoods(Integer goodsId);
    //修改商品
    public Boolean updateGoods(Goods goods);
//    根据分类id查询商品
    public List<Goods> getByCatId(Integer catId);
    public Integer goodsCount();
}
